home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 726-750 / 742 / icalc / docs / history < prev    next >
Text File  |  1995-03-18  |  9KB  |  255 lines

  1. =============================================================================
  2.  
  3.     icalc - a complex-number expression language
  4.  
  5.     (C) 1991, 1992 Martin W. Scott. All Rights Reserved.
  6.  
  7. =============================================================================
  8.  
  9.     Revision History,
  10.     and Things To Do.
  11.  
  12.     * == not documented yet
  13.  
  14. =============================================================================
  15.  
  16.     To Add/Fix
  17.     ----------
  18.  
  19.   FIX    - function, f say, defined initially, then some other fn g
  20.       defined using f. f is redefined, incorrectly at first, thereby
  21.       deleting it from sym-table, until defined correctly. But
  22.       pointers in g now point to nothing...
  23.       This indicates need for reference count within symbols...
  24.  
  25.   ADD    - break, continue constructs.
  26.  
  27.   ADD    - print function which takes strings and format values.
  28.  
  29.   ADD    - error construct. Very similar to print...
  30.  
  31.  
  32.     Version 2.1
  33.     -----------
  34.     - new scripts to perform numerical integration.
  35.  
  36.     - new script 'zroots.ic' which finds all roots of an
  37.       arbitrary polynomial.
  38.  
  39.     - BUG FIX: Sigh...sqrt function was still wrong; thoeretically correct,
  40.       but when rounding errors taken into account, it (very) rarely broke.
  41.       Fixed now, with a routine that looks after its rounding errors better.
  42.  
  43.     - BUG FIX: When started from workbench, output from exec'd commands is
  44.       now displayed if running under Kickstart 2.0.
  45.  
  46.     - CHANGE: indexes of arrays are now rounded to nearest integer, not
  47.       rounded down as previously.
  48.  
  49.     - BUG FIX: Corrected icalc.init session() function.
  50.  
  51.     - BUG FIX: Lattice's %g format behaved oddly under some circumstances
  52.       (writing values like -0 for instance). Since a new routine is used to
  53.       display numbers (in any base) this and all other %g related bugs have
  54.       gone. (Thanks to Eric Rankin for reporting this bug).
  55.       New routine used provides extra flexibility. Modified/new builtins:
  56.         prec(n)        display to n significant digits
  57.         sigzeros(n)    number of leading zeros condidered significant
  58.       The latter routine is new, and documented in the Advanced Guide.
  59.  
  60.     - multiple number bases now supported -- see Advanced Guide.
  61.       New builtin:  outbase(n)    returns last answer (ans)
  62.       (Requested by Jeremy McDonald, who kindly provided the number display
  63.       routine).
  64.  
  65.     - array base can be altered from 1 to any (non-negative) integer;
  66.       obviously, 0 and 1 are about the only sensible choices, in which
  67.       case, a[0] would be first element of array a.
  68.       New constant: ABASE        holds current array base index
  69.       New builtin:  arraybase(n)    returns old base, or -1
  70.                     if n out-of-range.
  71.  
  72.     - bye command added as alias for quit, exit.
  73.  
  74.     - strings given to commands (such as 'cd') need not now be terminated.
  75.       eg: can now type: exec "ed vars.ic<newline>
  76.       (This is along the same lines as GnuPlot).
  77.  
  78.  
  79.     Version 2.0
  80.     -----------
  81.  
  82.     - new and revised scripts - see documents for details.
  83.  
  84.     - writevars "file" writes all variables and arrays to specified
  85.       file in such a way that it can subsequently be read by a 'read'
  86.       command or as an argument to icalc.
  87.  
  88.     - exec "str" command added, passes string to system()
  89.       ie. runs command specified in str. eg. exec "run dme"
  90.       Also, cd "str" and pwd commands added.
  91.  
  92.     - local vars available for functions via local statement.
  93.  
  94.     - 1d-arrays added - see docs for details.
  95.  
  96.     - clear <SYM> where sym is function or variable (or array)
  97.       frees all memory, deletes entry in table. Use with care, doesn't
  98.       check if SYM is referred to elsewhere.
  99.  
  100.     - startup-file optionally specified in env-var ICALCINIT.
  101.  
  102.     - read <name> command, so you can read files from other files
  103.       (like #include) and interactively. Makes writing and debugging
  104.       of compilcated functions much easier.
  105.  
  106.     - Functions can take expressions as parameters, ie. parameters need
  107.       not be evaluated on calling, but only on reference; this can be
  108.       a powerful tool in function definition - see docs.
  109.  
  110.     - More freedom about putting new-lines in expressions to aid clarity.
  111.       See docs for details. Still not free-form though, because of the
  112.       interactive nature of icalc.
  113.  
  114.     - if-then and if-then-else constructs added.
  115.  
  116.     - while-do and repeat-until constructs added - see docs for details.
  117.       To facilitate infinite loops (which would probably print() values),
  118.       the constants TRUE and FALSE have been added. Also added INFINITY
  119.       constant, which represents the largest possible value that can be
  120.       used.
  121.  
  122.     - [internal: changed over to Berkeley Yacc from Bison, because
  123.        the latter didn't seem to understand %nonassoc operator type.]
  124.  
  125.     - [Bugette: a = 3 && b = 4 is valid - parses as a = (3 && (b = 4))
  126.        instead (I would have thought) as a = (3 && 4) = b (ie. nonesense).
  127.        Something wrong with precedence of right-to-left ops in Bison/Yacc?
  128.        Or a grammar that just can't be dealt with by Bison/Yacc?]
  129.  
  130.     - [Internal: binary ops have node set to call-function - quicker than
  131.        case lookup in eval_tree().]
  132.  
  133.     - Exponentation operator ^ now sensitive to operands, ie. doesn't
  134.       just use complex-number formula, but chooses method depending on
  135.       operands. Thus, realno^realno = realno + 0i. Quicker in most
  136.       cases now.
  137.  
  138.     - BUG FIX: files are now closed upon being read, rather than at
  139.       program termination.
  140.  
  141.     - BUG FIX: can now assign to parameters in function definition (for
  142.       what it's worth...).
  143.  
  144.     - BUG FIX: all arguments to functions are now evaluated from left
  145.       to right; previously, this was the case for builtin functions,
  146.       but not user-defined functions.
  147.  
  148.     - Recursive functions may now be written, but program stack grows
  149.       quickly - I'm working on reducing it.
  150.  
  151.     - Addition of ternary operator ?: with usage as in C (see docs).
  152.  
  153.     - Addition of +=, *= etc. operators.
  154.  
  155.     - Addition of relational operators > , >=, <, <=, ==, != and logical
  156.       operators &&, ||, ! (negation). && and || use short-circuit
  157.       evaluation, ala C.
  158.  
  159.     - Abort trap now set, so you can ^C out of long calculations :-)
  160.       Doesn't slow things down too much.
  161.  
  162.  
  163.     Version 1.1a
  164.     ------------
  165.  
  166.     - BUG FIX: The inverse trigonometric functions asin, acos, atan now
  167.       return values in the conventionally regarded PVR's. They should
  168.       also work all the time now (unlike in the last release). 
  169.  
  170.     - BUG FIX: Fixed major bug whereby sqrt(z) didn't return values in
  171.       the correct quadrant for PVR of (-PI,PI]. Not only did this affect
  172.       the sqrt function, but also all functions defined using sqrt
  173.       (internally and in scripts), including inverse trig. functions.
  174.  
  175.     - Addition of max and min functions, which take a variable number
  176.       of arguments and return respectively the value of the  maximum
  177.       or minimum REAL part encountered.
  178.  
  179.     - Addition of a time() builtin. This allows timings of operations
  180.       to be made. time(t) = current time - t.
  181.  
  182.     - Addition of sgn() builtin, which returns the sign (-1,0,1) of the
  183.       REAL part of its argument.
  184.  
  185.     - Modified definitions of int, floor, ceil to only act on REAL part of
  186.       their arguments, so to get floor of imag. part, say floor(Im(z)).
  187.  
  188.     - Revised icalc.init file, with more definitions.
  189.  
  190.     - BUG FIX: Corrected stupid mistake in definition of polar(r,theta)
  191.       function in icalc.init.
  192.  
  193.  
  194.  
  195.     Version 1.1
  196.     -----------
  197.  
  198.     - Example script files modified. Now provided are:
  199.         icalc.init, which has many useful functions (startup-file);
  200.         trig.icalc, which contains less-used trig functions;
  201.         stat.icalc, one-variable statistical analysis.
  202.       You are strongly recommended to look at these for tips on how
  203.       best to use icalc.
  204.  
  205.     - On startup, icalc will now read the file 's:icalc.init' if it
  206.       exists.
  207.  
  208.     - Special function multi() added, which evaluates all its arguments,
  209.       returning the last one as its value. See docs and example scripts
  210.       for applications. Also added is print() builtin, for use
  211.       with multi().
  212.  
  213.     - Special functions Sum(), Prod(), every() and vevery() now added.
  214.       The repeat construct has therefore been removed. (It was only
  215.       in there until I got around to adding this type of facility).
  216.  
  217.     - Expressions and function definitions may now be continued on
  218.       the next line by use of a backslash '\'.
  219.  
  220.     - Identifiers may begin with and contain underscores (and, as a
  221.       side-effect of the implementation, be composed entirely of
  222.       underscores).
  223.  
  224.     - Multi-parameter functions now added.
  225.  
  226.     - You can now declare functions that take no parameters, eg.
  227.         func total() = sum1 + sum2
  228.  
  229.     - Listing of user functions improved: now shows parameter list;
  230.       However, I don't think it's worth writing out whole definition.
  231.  
  232.     - Method of setting precision has changed: now use function
  233.       prec(digits), which returns ans (last computed result). Initially
  234.       set to 8.
  235.  
  236.     - Added function int(z), which returns the real and imaginary parts
  237.       of z rounded to nearest integers; 0.5 rounds up.
  238.  
  239.     - Added functions ceil(z) and floor(z), which operate separately
  240.       on the real and imaginary parts of their argument, in a similar
  241.       manner to int(z).
  242.  
  243.     - Now has a prompt to avoid confusion.
  244.  
  245.     - [Real-valued functions are no longer computed internally as such.]
  246.  
  247.     - Removed debugging code accidentally left in with version 1.0.
  248.  
  249.  
  250.  
  251.     Version 1.0
  252.     -----------
  253.  
  254.     - Initial release.
  255.